tools: add babl-icc-dump
authorØyvind Kolås <pippin@gimp.org>
Sun, 20 Aug 2017 20:39:04 +0000 (22:39 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sun, 20 Aug 2017 20:40:11 +0000 (22:40 +0200)
commitc804bd9153d9e5ad304ce2aef4bb0e9c15efe60a
tree1a3a9139b823ecad896058fdf1d96392562b2fdb
parent1c5a2bf5d68d23d3271831364abb7b652edcb511
tools: add babl-icc-dump

This commandline tool contains code to parse the v4 elements babl-icc currently
doesn't make use of. It loads data from the ICC profile directly into double
precision floats.

  CIE xy red: 0.640009 0.330022
  CIE xy green: 0.300008 0.600015
  CIE xy blue: 0.150011 0.059998

Is due to IEEE double precision floats not being as precise as the fixed point
values in the profile, which are *exactly*:

  CIE xy red:   0.6400  0.3300
  CIE xy green: 0.3000  0.6000
  CIE xy blue:  0.1500  0.0600
babl/babl-icc.c
tools/Makefile.am
tools/babl-benchmark.c
tools/babl-icc-dump.c [new file with mode: 0644]